package com.hejr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
* @desc: User实体类
* @author:hejr
* @date:2019/4/8
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("TB_USER")
@Builder
public class User implements Serializable {

	@TableId(value = "ID", type = IdType.AUTO)
	private Long id;

	@TableField("NAME")
	private String name;

	@TableField("AGE")
	private Integer age;

}
